<?php

class Module_Mediate_PublicCase extends Module_BaseModule
{
    use Lib_BaseTraitsModule;
    private static $obj = null;
    private $model = null;
    // 案件节点状态对应关系
    public static $caseStatusArr = array(
        'case_mediate' => '调解中',
        'mediate_fail' => "调解失败",
        'close_case' => "调解结案",
    );
    /**
     * 封闭构造.
     */
    public function __construct()
    {
        $this->model = new Model_Mediate_PublicCase();
    }

    /**
     * 单例获取
     * 保证一条进程只产生一个Module对象
     *
     * @return Module_Mediate_PublicCase
     */
    public static function getInstance()
    {
        if (empty(self::$obj)) {
            self::$obj = new self();
        }

        return self::$obj;
    }
    public function updateStatusByImportId($recordId,$status,$whereStatus = ''){
        return $this->model->updateStatusByImportId($recordId,$status,$whereStatus);
    }
    public function updateNumByImportId($recordId,$mediationNum){
        return $this->model->updateNumByImportId($recordId,$mediationNum);
    }

    //根据案件ids修改案件信息
    public function saveByIds($updateDta, $ids,$where=[])
    {
        return $this->model->saveByIds($updateDta, $ids,$where);
    }


}
